Psetpgrp

Section: Oct. 1, 1991 (2)
Updated: MiNT Programmer's Manual
Index Return to Main Contents
 

NAME

Psetpgrp - set the process group number for a process  

SYNOPSIS

WORD Psetpgrp(WORD pid, WORD neewgrp);
 

DESCRIPTION

Psetpgrp sets the process group of the process with process id pid to the number newgrp. The process must have the same user id as the current process, or must be a child of that process. If pid is 0, the process group of the current process is set. If newgrp is 0, then the process group is set equal to the process id of the process.  

RETURNS

The new process group number, if successful.

EFILNF if process pid does not exist.

EACCDN if the process with id pid has a different user id and is not a child of the calling process.  

SEE ALSO

Pkill(2), Pgetpgrp(2), Pgetpid(2)


 

Index

NAME
SYNOPSIS
DESCRIPTION
RETURNS
SEE ALSO

This document was created by man2html, using the manual pages.
Time: 16:01:23 GMT, March 03, 2023